package com.tledu.springboots01.service.impl;

import com.tledu.springboots01.dao.UserDao;
import com.tledu.springboots01.model.User;
import com.tledu.springboots01.model.UserRowMapper;
import com.tledu.springboots01.service.IUserService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Lsj
 * @version 1.0
 * @date 2021/6/30 20:09
 */
@Service
@AllArgsConstructor
public class IUserServiceImpl implements IUserService {
    private final UserDao userDao;
    /**
     * 查询全部用户
     *
     * @return 用户
     */
    @Override
    public List<User> list() {
        return userDao.list();
    }
}
